<template>
  <div>
    <el-carousel class="model1" :interval="5000" arrow="always" height="600px;">
      <el-carousel-item v-for="(item,index) in header" :key="index" class="sywz" >
      <img class="imdt" :src="item.url" />
        <p class="medium1" >{{item.name}}</p>
        <p class="medium2" >{{item.con}}</p>
      </el-carousel-item>
    </el-carousel>
    <router-view />

  </div>
</template>
<script>
// import { service } from "@/request";
import { service } from '@/request'
export default {
  data () {
    return {
      header: []
    }
  },
  created () {},
  mounted () {
    this.Carousel()
  },
  methods: {
    // 轮播图
    Carousel () {
      service({
        url: '/go/carousel',
        method: 'post',
        data: {}
      }).then((data) => {
        if (data.code == 200) {
          this.header = data.data
        }
      })
    }
  }
}
</script>
<style scoped>
.xzdsp{
  width: 70%;
  height: 408px;
  display: flex;
  justify-content: space-between;
  align-content: center;
  align-items: center;
  padding: 30px 0px;
}
.xspz{
  width: 300px;
  height: 260px;
  display: inline-block;
  background: url('../assets/image/x1.png') no-repeat;
  background-size: 100% 100%;
}
.dsp{
  width: 500px;
  height: 300px;
  display: inline-block;
  background: url('../assets/image/d1.png') no-repeat;
  background-size: 100% 100%;
}
.xspy{
  width: 300px;
  height: 260px;
  display: inline-block;
  background: url('../assets/image/x2.png') no-repeat;
  background-size: 100% 100%;
}
.sywz {
  font-size: 49px;
  font-family: PingFang SC, PingFang SC-Semibold;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  margin-top: 0;
}
.model1 {
  width: 99.9%;
  height: 600px;
  background: url("../assets/image/dpm1.png") no-repeat;
  background-size: 100% 100%;
}
.model2 {
  width: 99.9%;
  height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
  background: url('../assets/image/dbj2.png') no-repeat;
  background-size: 100% 100%;
}
.photo {
  width: 333px;
  height: 240px;
  text-align: center;
  background: url("../assets/image/gysq.png") no-repeat;
  background-size: 100% 100%;
  display: flex;
  justify-content: center;
  position: absolute;
  left: 41%;
  top: 64%;
  /* display: block; */
}
.bzjd {
  width: 70%;
  height: 400px;
  display: flex;
  justify-content: space-between;
  background: url('../assets/image/bjt1.png');
  margin-top: 120px;
}
.box1 {
  width: 30%;
  height: 100%;
  display: inline-block;
  border: 1px solid black;
}
.model3 {
  width: 99.9%;
  height: 600px;
  border: 1px solid black;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
}
/deep/ .el-menu--horizontal>.el-submenu .el-submenu__icon-arrow {
    position: static;
    vertical-align: middle;
    margin-left: 8px;
    margin-top: -3px;
    display: none;
}
/deep/ .el-carousel__container {
    position: relative;
    height: 600px;
}
 .imdt{
  width: 100%;
  height: 100%;

 }
.medium2{
position: absolute;
    left: 5rem;
    bottom: 10rem;
    font-size: 50px;
    color: white;
    /* text-decoration-line: underline; */
    font-weight: 900;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-size: 48px;
    line-height: 100%;
    display: flex;
    align-items: center;
    flex: none;
    order: 1;
    align-self: stretch;
}
.medium1{
    position: absolute;
    left: 5rem;
    bottom: 15rem;
    font-size: 50px;
    color: white;
    /* text-decoration-line: underline; */
    font-weight: 900;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-size: 48px;
    line-height: 100%;
    display: flex;
    align-items: center;
    flex: none;
    order: 1;
    align-self: stretch;
}
</style>
